package cloud.eastfair;

import lombok.Data;

import java.util.Arrays;
import java.util.List;

/**
 * 生成代码配置
 */
@Data
public class GeneratorModel {
    /**
     * 目录地址
     */
    public static String path = "E:\\workspacing\\cloud\\test2";

    /**
     * 包名
     */
    public static String groupId = "com.eastfair";

    /**
     * 数据库地址
     */
    public static String mysqlUrl = "jdbc:mysql://127.0.0.1:3306/test?serverTimezone=CTT&characterEncoding=utf8&useUnicode=true&useSSL=false&autoReconnect=true&zeroDateTimeBehavior=convertToNull";

    /**
     * 数据库用户
     */
    public static String userName = "root";

    /**
     * 数据库密码
     */
    public static String password = "root";

    /**
     * 模块名称
     */
    public static String serviceName = "test2";

    /**
     * 作者
     */
    public static String author = "ligang";

    /**
     * 表前缀
     */
    public static String tablePrefix = "c_";


    /**
     * 表名集合
     */
    public static List<String> tables = Arrays.asList(
            "c_user",
            "c_parameter"
    );

    public static String getPath() {
        return path;
    }

    public static String getGroupId() {
        return groupId;
    }

    public static String getMysqlUrl() {
        return mysqlUrl;
    }

    public static String getUserName() {
        return userName;
    }

    public static String getPassword() {
        return password;
    }

    public static String getServiceName() {
        return serviceName;
    }

    public static String getAuthor() {
        return author;
    }

    public static String getTablePrefix() {
        return tablePrefix;
    }

    public static List<String> getTables() {
        return tables;
    }

    public static void setPath(String path) {
        GeneratorModel.path = path;
    }

    public static void setGroupId(String groupId) {
        GeneratorModel.groupId = groupId;
    }

    public static void setMysqlUrl(String mysqlUrl) {
        GeneratorModel.mysqlUrl = mysqlUrl;
    }

    public static void setUserName(String userName) {
        GeneratorModel.userName = userName;
    }

    public static void setPassword(String password) {
        GeneratorModel.password = password;
    }

    public static void setServiceName(String serviceName) {
        GeneratorModel.serviceName = serviceName;
    }

    public static void setAuthor(String author) {
        GeneratorModel.author = author;
    }

    public static void setTablePrefix(String tablePrefix) {
        GeneratorModel.tablePrefix = tablePrefix;
    }

    public static void setTables(List<String> tables) {
        GeneratorModel.tables = tables;
    }
}
